const express = require('express')
const compression = require('compression')
const app = express()
// 要把这一行代码写到 静态资源托管之前
app.use(compression())
app.use(express.static('./dist'))

app.listen(80,()=>{
  console.log('server running at http://127.0.0.1')
})